using System;
using System.Collections.Generic;
using System.Text;

namespace App.Modelo {
    public class Funcion {
  
        public Funcion() : base() { }
        public Funcion(string Funcion):base()
        {
            Nombre = Funcion;
        }
            

        public virtual Int32 Id { get; set; }

        public virtual String Nombre { get; set; }
            
        public override string ToString()
        {
            return this.Nombre.ToLower();
        }

        public override int GetHashCode()
        {
            return Id;
        }


        public override bool Equals(object obj)
        {
            if (obj is Funcion)
                return ((Funcion)obj).Id == Id;
            else
                return base.Equals(obj);
        }
    }
}
